package com.wx.tnsbasedata.model.vo;

import com.wx.tnsbasedata.model.CityModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

/**
 * @author 林建权
 * @version 1.0
 * @date 2020/7/27 11:37
 */

//前端曾提出用value存放数据，使用一段时间后又说可以不用了。为了避免出问题，决定保留。
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "城市")
public class CityVo {
    private Integer id;
    @ApiModelProperty(value = "父id",example = "123")
    private Integer pid;
    @ApiModelProperty(value = "城市名cityName")
    private String cityName;
    @ApiModelProperty(value = "城市名value")
    private String value;
    @ApiModelProperty(value = "层级（省市县）",example = "123")
    private Integer type;
    @ApiModelProperty(value = "子级城市")
    private List<CityVo> children;
}
